use axum::{
    routing::{post, get, delete},
    Router,
    middleware,
};
use crate::{
    handlers::news_search::{
        search_news_by_keywords
    },
    services::{NewsSearchService, UserService},
    middleware::auth::auth_middleware,
};

/// 新闻检索相关路由
pub fn news_search_routes(news_search_service: NewsSearchService, user_service: UserService) -> Router {
    Router::new()
        .route("/search_news_by_keywords", get(search_news_by_keywords))
        .with_state(news_search_service)
        .with_state(user_service)
} 